import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
        sc.nextLine();
        for (int i = 1; i <= count; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            sc.nextLine();
            int res = a * b;
            System.out.println(res);
        }
       
    }

    
}
